package com.sailors.common.task.provider.faced.model.enums;


import com.sailors.common.task.provider.infra.design.common.enums.BussinessBaseEnum;
import lombok.AllArgsConstructor;

/**
 * Task type enum
 *
 * @description: 任务是否异步枚举
 * @author: cyj
 * @date 2022 -11-22 15:29:02
 */
@AllArgsConstructor
public enum TaskAsyncEnum implements BussinessBaseEnum {

    NO(0, "否"),
    YES(1, "是");

    private Integer code;

    private String desc;

    @Override
    public Integer getCode() {
        return code;
    }

    @Override
    public String getDesc() {
        return desc;
    }

}
